package com.example.kafkabasic.consumer;

import lombok.extern.slf4j.Slf4j;
import org.springframework.kafka.annotation.KafkaListener;
import org.springframework.stereotype.Component;

@Slf4j
@Component
public class KafkaConsumer {

    @KafkaListener(topics = "topic-1,topci-2", groupId = "group1")
    public void listener(String data) {
        log.info("Received message [{}] in group1", data);
    }
}
